
<template>
  <div id="home" v-if="showPage">
    <div>
            <div class="top">
                <h1>优爆智慧管理后台</h1>
                <h2>让零售更简单！用科技赋能门店升级！</h2>
            </div>
            <div class="bottom">
                <img src="../../assets/home.png" alt="">
            </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      showPage:false,
      userInfos: JSON.parse(sessionStorage.getItem('userInfos')),
    }
  },
  mounted() {
   this.showPage = true
  },
  methods: {
  }
}
</script>
<style lang="less" scoped>
.top {
  padding-top: 64px;
  h1,
  h2 {
    text-align: center;
  }
  h1 {
    font-size: 33px;
    font-weight: normal;
    color: #474747;
  }
  h2 {
    font-size: 19px;
    font-weight: normal;
    color: #999;
    line-height: 44px;
  }
}
.bottom {
  display: flex;
  justify-content: center;
  align-items: center;
}

//销售看板
.box-card {
  display: flex;
  padding-top: 10px;
  padding-left: 10px;
  padding-bottom: 10px;
  // width: 100%;
  border-radius: 5px;
  height: 95px;
  background-color: #ffffff;

  .box-card-left {
    margin-right: 10px;
  }
  .box-card-right {
    display: flex;
    flex-direction: column;
    .text {
      font-size: 12px;
      color: #666;
      font-family: Microsoft YaHei;
      margin-bottom: 12px;
    }
    .num {
      font-size: 22px;
      color: #474747;
      font-family: Helvetica;
      line-height: 1;
      margin-bottom: 10px;
    }
    .trend {
      font-size: 12px;
      color: #666666;
      line-height: 1;
      .up {
        color: #e60012;
        padding-left: 10px;
      }
      .up::before {
        content: "↑";
        font-size: 12px;
        color: #e60012;
      }
      .down {
        color: #22ce00;
      }
      .down::before {
        content: "↓";
        font-size: 12px;
        color: #22ce00;
      }
    }
  }
}
.box-card:hover {
  transform: scale(1.1);
}
.border-1 {
  box-shadow: 0px 3px 10px 0px rgba(255, 112, 104, 0.3);
  border: solid 1px rgba(230, 0, 18, 0.15);
}
.border-2 {
  box-shadow: 0px 3px 10px 0px rgba(252, 198, 8, 0.3);
  border: solid 1px rgba(253, 200, 5, 0.15);
}
.border-3 {
  box-shadow: 0px 3px 10px 0px rgba(68, 151, 238, 0.3);
  border: solid 1px rgba(47, 178, 244, 0.15);
}
.border-4 {
  box-shadow: 0px 3px 10px 0px rgba(233, 198, 144, 0.3);
  border: solid 1px rgba(231, 196, 142, 0.15);
}
.border-5 {
  box-shadow: 0px 3px 10px 0px rgba(83, 213, 126, 0.3);
  border: solid 1px rgba(83, 213, 125, 0.15);
}
.border-6 {
  box-shadow: 0px 3px 10px 0px rgba(133, 96, 243, 0.3);
  border: solid 1px rgba(134, 97, 244, 0.15);
}
.card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  h2 {
    font-size: 14px;
    color: #666;
    font-weight: normal;
  }
}
</style>
